<div id="left">	
    <?php
    if ($data['list'])
        foreach ($data['list'] as $value) {
            ?>
            <div id = "sanpham">	
                <?php
                if($value['HinhAnh'])
                    echo '<img src="public/'.$value['HinhAnh'].'" width="200" height="200"/>';
                else
                    echo '<img src="public/images/hinh.jpg" width="200" height="200"/>';
                ?>
                <br/>	
                <?php echo $value['TenMH'];?><br/>
                Gia : <?php echo $value['Gia'];?><br/>
                <a href="<?php echo "index.php?mod=dathang&maMH=$value[MaMH]&tenMH=$value[TenMH]&gia=$value[Gia]";?>">Dat Hang</a>
            </div>
            <?php
        }
    ?>
</div>

